
import os

# path = os.getcwd()
path = os.path.abspath("../20250708")
# print(path)
file_name = os.listdir(path)
# print(file_name)

for f_n in file_name:
    print(f_n)
    flag = f_n.endswith(".py")#是否以.py结尾的文件
    if flag:
        py = open(f_n,'r',encoding='utf-8')
        while True:
            str = py.readline()
            s_l = str.lstrip()
            if not (s_l.startswith("#")):
                print(str)
            if len(str) == 0:
                break
        print('+++++++++++++++++++++++++++++++++++++')
        py.close()

